// |**| Opcon|OperationMango|**|Opcon|OperationMango|**|
// |**| Source Code for the FPS Operation Mango     |**|
// |**| Opcon|OperationMango|**|Opcon|OperationMango|**|

using System;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;

namespace OperationMango
{


	public class Utilities
	{

		public Utilities ()
		{

		}
		
		public static void PrintGLError()
		{
			ErrorCode latesterror = GL.GetError();
			Console.WriteLine("Last GL Error = " + latesterror);
		}
		
		public static bool ToggleBoolean(bool b)
		{
			switch (b) 
			{
			case true:
				return false;
			case false:
				return true;
			default:
				return false;
			}
		}
		
		public static WindowState ToggleFullscreen(WindowState w)
		{
			switch (w) 
			{
			case WindowState.Fullscreen:
				return WindowState.Normal;
			case WindowState.Normal:
				return WindowState.Fullscreen;
			default:
				return WindowState.Normal;
			}
		}
	}
}
